import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  // {path: '/',name: 'Index',component: () => import('../views/index/Index.vue')},//默认展示页面
  {path: '/',name: 'Login',component: () => import('../views/login/login.vue')},//登录页面
  {path: '/login',name: 'Login',component: () => import('../views/login/login.vue')},//登录页面
  {path: '/index',name: 'Index',component: () => import('../views/index/Index.vue'),  //主页
    children:[
      {path:'/',name:'Main',component: () => import('../views/index/main.vue')}, //主页

      //系统管理
      {path:'/user',name:'User',component: () => import('../views/systemManagement/user.vue')}, //用户管理
    ]
  },




  {path: '/about',name: 'About',component: () => import('../views/About.vue')},
]

const router = new VueRouter({
  routes
})

export default router
